import { Tag } from 'antd';
import React from 'react';

interface Props {
  tags: string[];
}

const TagView: React.FC<Props> = (props) => {
  const { tags } = props;
  return <>{tags && tags.map((item, index) => <Tag key={index}>{item}</Tag>)}</>;
};

export default TagView;
